package com.qianzhou.eduCommon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianzhou.eduCommon.bo.CourseSectionBO;
import com.qianzhou.eduCommon.po.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    /**
     * 根据课程id查找对应的章节和课时信息
     * @param courseId
     * @return
     */
    List<CourseSectionBO> findSectionAndLesson(Integer courseId);
}